import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 广告代理商表单验证规则 */
const agentFormRules = reactive(<FormRules>{
  platform: [
    { required: true, type: "number", message: "请选择平台", trigger: "change" }
  ],
  name: [
    { required: true, message: "代理商名称不能为空", trigger: "blur" },
    { min: 1, max: 100, message: "代理商名称长度应在1-100个字符", trigger: "blur" }
  ]
});

export { agentFormRules }; 